package com.library.service;

import com.library.common.Result;
import com.library.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LDH
 * @since 2022-05-12
 */
@SuppressWarnings("rawtypes")
public interface IUserService extends IService<User> {
    Result userLogin(String account, String password);
    Result saveUser(User user);
    Result saveAll();
    Result updateUser(User user);
    Result deleteUser(Integer id);
    Result deleteByIdList(Map<String, List> ids);
    Result updateByUserList(Map<String,List<User>> users);
    Result likeByName(String name);
    Result findPage(Integer p);
}
